package com.czh.dao;

import com.czh.pojo.Book;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

//老方法@Component
public class BookMapperImpl  implements BooksMapper{
    private  SqlSessionTemplate sessionTemplate;
//@Autowired
    public void setSessionTemplate(SqlSessionTemplate sessionTemplate) {
        this.sessionTemplate = sessionTemplate;
    }
    @Override
    public int Add(Book book) {
        return 0;
    }

    @Override
    public int Delete(int bookID) {
        return 0;
    }

    @Override
    public int Update(Book book) {
        return 0;
    }

    @Override
    public Book SelectById(int bookID) {
        return null;
    }

    @Override
    public Book SelectByName(String bookName) {
        return null;
    }

    @Override
    public List<Book> SelectAll() {
        return null;
    }
}
